import Vue from 'vue'
import App from './App.vue'

import Xinwen from './assets/01'
import Xiju  from './assets/02'
import Pintuan from './assets/03'
import Geren from './assets/04'




import huodong from './components/views/01'
import nihao from './components/views/02'


import VueRouter from 'vue-router'
Vue.config.productionTip = false
Vue.use(VueRouter)

const routes = [
  {
    path: '/',// 默认hash值路径
    redirect: '/xinwen',//重定向
  },
  {
    path: "/xinwen",
    component: Xinwen,
    children: [
      {
        path: 'huodong',
        component: huodong
      },
      {
        path: 'nihao',
        component: nihao
      },
     
    ]

  },
  {
    path: "/xiju",
    component: Xiju
  },
  {
    path: "/pintuan",
    component: Pintuan
  },
  {
    path: "/geren",
    component: Geren
  }
]


const router = new VueRouter({
  routes
})
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
